package com.code.day7FenZ;

public class Person02 {
    private String name;
    private int age;


    //    有参的构造方法
    public Person02(String name, int age) {
        this.name = name;
        this.age = age;
    }

    //   无参的构造方法
    public Person02() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


}
